package com.gegao.practise.simple;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.gegao.practise.R;
import com.juzi.main.AppConnect;

public class TestGfan extends Activity {
    Button mBt;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.one_button);
        mBt = (Button)findViewById(R.id.bt);
        
        
        mBt.setOnClickListener(new OnClickListener() {
            
            @Override
            public void onClick(View v) {
                AppConnect.getInstance(getApplicationContext()).showOffers(getApplicationContext());
            }
        });
    }
    
    @Override
    protected void onDestroy() {
        // TODO Auto-generated method stub
        super.onDestroy();
        AppConnect.getInstance(this).finalize();
    }

}
